package fr.enseirb.mycub.component.map.tramway;

import java.util.ArrayList;

import android.graphics.drawable.Drawable;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

import fr.enseirb.mycub.component.map.OverlayBundleItem;
import fr.enseirb.mycub.component.map.bike.BikeStationsOverlay;
import fr.enseirb.mycub.structures.SpecificLine;

public class TramStationOverlay extends OverlayBundleItem {
	
	private int id; 			// ID de la station
	private ArrayList<SpecificLine> lines; 		// ID des lignes
	
	public TramStationOverlay(GeoPoint point, ArrayList<SpecificLine> lines, int id) {
		super(point);
		this.id = id;
		this.setLines(lines);
	}

	@Override
	public Drawable getMarker(int stateBitset) {
		if (TramStationsOverlay.mDrawText) {
			TramStationsOverlay.standard.lines = getLines();
			return TramStationsOverlay.standard;
		}
		else {
			return TramStationsOverlay.pin;
		}
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public ArrayList<SpecificLine> getLines() {
		return lines;
	}

	public void setLines(ArrayList<SpecificLine> lines) {
		this.lines = lines;
	}

}